import React, { Component } from "react";

import hoc from "./withHoc";

// @hoc
// class App extends Component {
//   render() {
//     console.log(this.props);
//     return (
//       <>
//         <h3>hoc高阶组件</h3>
//       </>
//     );
//   }
// }

// const App2 = hoc(App);

// export default hoc(App);

const App = hoc(() => {
  return (
    <>
      <h3>hoc高阶组件</h3>
    </>
  );
});

export default App;
